package com.vividstores.integration.mq;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "fileBundle")
@XmlAccessorType(XmlAccessType.FIELD)
public class MQFileBundle {
	
	private MQFileBundleHeader header;

	@XmlElementWrapper(name = "files")
	@XmlElement(name = "file")
	private List<MQFile> files = new ArrayList<MQFile>();

	public MQFileBundleHeader getHeader() {
		return header;
	}

	public void setHeader(MQFileBundleHeader header) {
		this.header = header;
	}

	public List<MQFile> getFiles() {
		return files;
	}

	public void setFiles(List<MQFile> files) {
		this.files = files;
	}

	@Override
	public String toString() {
		return "MQFileBundle [header=" + header + ", files=" + files + "]";
	}

}
